<template>
  <div class="goods">
    <!-- {{goods}} -->
    <goodsitem v-for="(item,index) in goods" :key="index" :goodsitem="item"></goodsitem>
  </div>
</template>

<script>
import goodsitem from "components/content/goods/goodsitem";
export default {
  name: "goods",
  components: {
    goodsitem,
  },
  props: {
    goods: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style>
.goods {
    display: flex;
    flex-wrap: wrap;/*规定灵活的项目在必要的时候拆行或拆列*/
    justify-content: space-around;/*项目位于各行之前、之间、之后都留有空白的容器内。 */
    padding: 5px;
  }
</style>